@import 'antd/es/style/themes/default.less';
//主色，大面积的使用，用于重要icon
@color1: #0165D5;
//辅助色
@color2: #0071F0;
//重要级的文字信息，内容标题信息
@color3: #15263A;
//表单正文颜色
@color4: #4F5E70;
//辅助文字颜色
@color5: #999999;
//页面背景颜色
@color6: #F5F9FF;
//模块背景颜色
@color7: #E8F4FF;
//部分弱icon颜色
@color8: #CCCCCC;
//用于金额颜色或者警示性的文字
@color9: #FF2D51;
//用户金额颜色，一般代表负支出
@color10: #00B87C;
//用于页面一级标题，导航文字，部分按钮
@color11: #333333;
//正文颜色，二级标题文字颜色
@color12: #666666;
//提示，警示文字
@color13: #FF7A23;
@color14: #DAD9DB;
@color15: #EBF4FF; //表单背景色 下拉和输入框盒阴影 模块背景色

h1,
h2,
h3,
h4,
h5,
div,
p, span {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  height: 100%;

  //对布局做的一些更改
  .ant-alert.ant-alert-no-icon {
    padding: 6px 12px;
  }

  .global-menu-left-dir-child {
    padding-left: 12px;
  }

  .ant-tabs-tab {
    padding: 0 0 8px;
  }

    .ant-upload-list-picture .ant-upload-list-item,
    .ant-upload-list-picture-card .ant-upload-list-item {
      padding: 0px;
    }

}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;
        word-break: break-all;

        >span {
          display: block;
          word-break: break-all;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

//modal框关闭等比缩小
.ant-modal {
  max-width: none;
}

//以下是新增的公共样式

.zjf-container {
  //内容区外层盒子
	width: 100%;
	height: calc(100% - 36px);
	padding: 16px;
	border-radius: 4px;
	background-color: #fff;
	overflow: auto;
}

.zjf-container-nof {
  //内容区外层盒子不带footer的
  border-radius: 12px;
	width: 100%;
	height: 100%;
	padding: 16px;
	border-radius: 4px;
	background-color: #fff;
	overflow: auto;
}

/** 表格操作列的操作按钮样式 **/
.opera-span-common {
  color: @color2;

  >span {
    cursor: pointer;
  }

  >i {
    font-style: normal;
    margin: 0 4px;
  }
}

//一行文本溢出隐藏
.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

//多行文本溢出隐藏
.textOverflowMulti {
  height: 64px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

//1行文本溢出隐藏
.textOverflowMultiOne {
  max-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

//2行文本溢出隐藏
.textOverflowMultiTwo {
  max-height: 42px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

//3行文本溢出隐藏
.textOverflowMultiThree {
  max-height: 64px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

//4行文本溢出隐藏
.textOverflowMultiFour {
  max-height: 86px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

// .color1 {
//   color: #FF2D51;
// }
// .color2 {
//   color: #5a5a5a;
// }
// .color3 {
//   color: #4a4a4a;
// }
// .color4 {
//   color: #323232;
// }
// .color5 {
//   color: #999999;
// }
// .color6 {
//   color: #595959;
// }
// .color7 {
//   color: @color2;
//   cursor: pointer;
// } /*蓝色*/

// .color8 {
//   color: @color2;
// } /*蓝色*/

//通用颜色
.common-color1 {
  color: @color1;
}

.common-color2 {
  color: @color2;
  cursor: pointer;
}

.common-color3 {
  color: @color3;
}

.common-color4 {
  color: @color4;
}

.common-color5 {
  color: @color5;
}

.common-color6 {
  color: @color6;
}

.common-color7 {
  color: @color7;
}

.common-color8 {
  color: @color8;
}

.common-color9 {
  color: @color9;
}

.common-color10 {
  color: @color10;
}

.common-color11 {
  color: @color11;
}

.common-color12 {
  color: @color12;
}

.common-color13 {
  color: @color13;
}

.common-color14 {
  color: @color14;
}

.common-color15 {
  color: @color15;
}

//悬浮变蓝色
.hover-span {
  cursor: pointer;

  &:hover {
    color: @color2;
  }
}

//弹性盒子布局
.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

//antd组件 space不能自动换行，这里做一下处理
.ant-space {
  display: flex;
  flex-wrap: wrap;
}

//更改表单的必填样式
.lable-require::before {
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

//表格长文本断行
.ant-table-cell {
  word-break: break-all;
}

.ant-table-cell::before {
  opacity: 0;
}

//气泡卡片内容div最大跨度
.custom-ant-popver-content {
  max-width: 240px;
  word-break: break-all;
}


//新查询条件样式
#root .new-search-form-style {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #FFF;
    border-radius: 8px;
    padding: 16px 0px 4px;
  
    .ant-form-item {
      margin: 0 32px 12px 0;
    }
  
    .ant-form-item .ant-select,
    .ant-input {
      width: 100%;
    }
  
    //下拉多选超出部分隐藏
    .ant-select-selection-overflow {
      flex-wrap: initial;
      overflow: hidden;
    }
  }
  


//查询条件样式
#root .search-form-style, .ant-modal-root .search-form-style {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: @color15;
  border-radius: 8px;
  padding: 16px 10px 4px;

  .ant-form-item {
    margin: 0 32px 12px 0;
  }

  .ant-form-item .ant-select,
  .ant-input {
    width: 140px;
  }
  .ant-col .ant-form-item {
    margin-right: 0;
  }

  .ant-col .ant-form-item .ant-select, .ant-col .ant-form-item .ant-input,.ant-col .ant-form-item .ant-picker {
    width: 100%;
  }

  //下拉多选超出部分隐藏
  .ant-select-selection-overflow {
    flex-wrap: initial;
    overflow: hidden;
  }
}

//虚拟表格样式
.art-table-wrapper {
  .art-table {
    font-size: 14px;
  }

  .art-table-cell {
    word-break: break-all;
  }
}

//气泡确认框标题样式
.ant-popover-message-title {
  padding-left: 16px;
}

//通用表格图片样式
.img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-size: cover;
  // overflow: hidden;
}

.img-table {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-size: cover;
}

.img-wrap {
  border-radius: 4px;
  background-size: cover;
  overflow: hidden;
}

.img-wrap48 {
  width: 48px;
  height: 48px;
}

.img-wrap64 {
  width: 64px;
  height: 64px;
}

.img-wrap84 {
  width: 84px;
  height: 84px;
}

.selectIcon {
  font-size: 16px;

  &:hover {
    color: #1296db
  }
}

.shuaixuanSelected {
  width: 28px;
  line-height: 16px;
  border: 1px solid #0071F0;
  opacity: 1;
  border-radius: 4px;
  color: #0071F0FF;
}

.shuaixuanWeixuan {
  width: 28px;
  line-height: 16px;
  border: 1px solid #CCCCCC;
  opacity: 1;
  border-radius: 4px;
  color: #CCCCCCFF;
}

.font10px {
  font-size: 12px;
  transform : scale(0.83,0.83);
}

/****列表加重字符列样式****/
.table-weight-text {
  color: @color3;
  font-weight: 600;
}

//表格顶部按钮区域
.common-table-header-btn {
  margin: 8px 0 12px 0;
}

.common-btn-wrapper{
  margin-bottom: 12px;
}

.newRoundBtn{
  border: 1px solid #CBCDD1;
  color: #000;
  height: 32px !important;
  font-size: 12px !important;
  
  &:focus{
    border: 1px solid #CBCDD1;
    color: #000;
  }
}

.newRoundBtn2{
    border: 1px solid #CBCDD1;
    color: #000;
    height: 32px !important;
    font-size: 14px !important;
    padding: 4px 16px !important;
    
    &:focus{
      border: 1px solid #CBCDD1;
      color: #000;
    }
  }
  

.newColorRoundBtn{
    border: 1px solid #165DFF;
    color: #165DFF;
    background: #F7FAFF;
    height: 32px !important;
    font-size: 14px !important;
    
    // &:focus{
    //   border: 1px solid #F7FAFF;
    //   color: #F7FAFF;
    // }
  }
  

.newRoundBtn24{
    border: 1px solid #CBCDD1;
    color: #333333;
    height: 24px !important;
    font-size: 12px !important;
    
    &:focus{
      border: 1px solid #CBCDD1;
      color: #333333;
    }
  }

  //下拉option字体为12px
  .smallFontSizeOption {
    font-size: 12px !important;
  }

//公共组件样式改造添加样式（暂时）------------------------
body {

  //弹窗内第一个form元素的盒阴影被遮挡
  .ant-form-small {
    padding-top: 2px;
  }

  //分页组件jumpt输入框 盒阴影
  .ant-pagination-options-quick-jumper input {
    box-shadow: 0px 0px 4px @color15;
  }

  //下拉组件 盒阴影
  .ant-select-selector {
    box-shadow: 0px 0px 4px @color15;
  }

  .ant-btn-primary[disabled] {
    background: #80B8F7 !important;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05) !important;
    color: #FFFFFF !important;
  }


  .ant-input-sm {
    padding: 0px 6px;
    box-shadow: 0px 0px 4px @color15;
  }

  //禁用输入框需特殊处理边框颜色
  .ant-input-disabled,
  .ant-input-affix-wrapper-disabled {
    border: 1px solid #f5f5f5;

    // &:hover {
    //   border: 1px solid #f5f5f5 !important;
    // }
  }

  .ant-input-number {
    border: none;
    box-shadow: 0px 0px 7px #EBF4FF;
  }

  .ant-table-thead > tr > th{
    background: #F8FAFF;
  }
  
  .ant-table,.art-table-wrapper {
    box-shadow: 0px 0px 10px rgba(79, 94, 112, 0.1);
    .art-table-header tr th{
      font-weight:bold;
    }
    .ant-table-tbody{
      font-size:12px;
    }
    .ant-table-selection{
      display: inline;
      .ant-checkbox-wrapper{
        display: inline;
        >span{
          display: inline-block;
        }
      }
    }
    .ant-table-selection::before{
      content:"\5168\9009\0020"
    }
  }

	.ant-modal-body {
		padding: 0;
	}

  .ant-modal-close-x{
    transform: translateX(14px);
		margin-top: -4px;
  }

  .ant-table-thead > tr > th {
    border-bottom: none;
    font-weight: bold;
  }

	.ant-table.ant-table-middle .ant-table-title, .ant-table.ant-table-middle .ant-table-footer, .ant-table.ant-table-middle .ant-table-thead > tr > th, .ant-table.ant-table-middle .ant-table-tbody > tr > td, .ant-table.ant-table-middle tfoot > tr > th, .ant-table.ant-table-middle tfoot > tr > td {
		padding: 12px;
	}

	.ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
		background-color: #ECF2FF!important;
	}
	.ant-table-body .ant-table-row-hover{
		background: #ECF2FF!important;
	}
	.ant-table-body .ant-table-row-hover>td{
		background: #ECF2FF!important;
	}


	.ant-form-item {
		margin-bottom: 16px;
	}

  //普通表格
  #root .ant-table-thead .ant-checkbox-inner {
    border: 1px solid red;
  }

  #root .ant-table-thead .ant-checkbox-inner::after{
    background-color: red;
  }

  #root .ant-table-thead .ant-checkbox-checked::after {
    border: 1px solid red;
  }

  #root .ant-table-thead .ant-checkbox-checked .ant-checkbox-inner {
    background-color: red;
  }

  //虚拟列表
  #root .allCheckedStyle .ant-checkbox-inner {
    border: 1px solid red;
  }

  #root .allCheckedStyle .ant-checkbox-inner::after {
    background-color: red;
  }

  #root .allCheckedStyle .ant-checkbox-checked::after{
     border: 1px solid red;
  }

  #root .allCheckedStyle .ant-checkbox-checked .ant-checkbox-inner {
    background-color: red;
  }

	.antd-select-cell {
		border-radius: 1px solid #000!important;
	}

}